package com.example.pwj.ffstudy.ui.zhihu.model;


import com.example.pwj.ffstudy.bean.zdaily.ZDailyExtra;
import com.example.pwj.ffstudy.bean.zdaily.ZDailyStoryDetail;
import com.example.pwj.ffstudy.http.Api;
import com.example.pwj.ffstudy.ui.zhihu.contract.ZNewsDetailContract;

import javax.inject.Inject;

import io.reactivex.Observable;

/**
 * Created by pwj on 2017/8/25.
 */

public class ZNewsDetailModel implements ZNewsDetailContract.Model {
    @Inject
    ZNewsDetailModel() {
    }

    @Override
    public Observable<ZDailyStoryDetail> getZDailyStoryDetail(int id) {
        return Api.getDefault(Api.TYPE_ZHIHU).getZDailyStotyDetail(id);
    }

    @Override
    public Observable<ZDailyExtra> getZDailyExtra(int id) {
        return Api.getDefault(Api.TYPE_ZHIHU).getZDailyExtra(id);
    }
}
